
<?php
//error_reporting(E_ALL || ~E_NOTICE);


function readerEXCEL($XU_orderid,$xtype,$inputdatalineo) {

$inputdataline=$inputdatalineo;
  
 if ($xtype=="SAPBuyorder"){
 	foreach ($inputdataline as $inputdatalinec) {
 		if ($inputdatalinec[0]==$XU_orderid|isset($inputdatalinec[12]))
 			{echo $inputdatalinec[12];}
 	}
	//echo $inputSAPBuyorder[$arrayid];
	}
 if ($xtype=="Expcom"){
 	foreach ($inputdataline as $inputdatalinec) {
 		if ($inputdatalinec[0]==$XU_orderid|isset($inputdatalinec[13]))
 			{echo $inputdatalinec[13];}
 	}
 }
//echo $inputExpcom[$arrayid];}
 if ($xtype=="ExpNo"){
	//echo $inputExpNo[$arrayid];}
	 	foreach ($inputdataline as $inputdatalinec) {
 		if ($inputdatalinec[0]==$XU_orderid|isset($inputdatalinec[14]))
 			{echo $inputdatalinec[14];}
 	}
}

}
?>

